<?php
/**
 * Created by PhpStorm.
 * User: ZhangWei
 * Date: 2018/3/31
 * Time: 12:26
 */

namespace App\Http\Controllers\Api\V1;


use App\Http\Controllers\Api\ApiBase;
use App\Models\Doc;

class BaseController extends ApiBase
{


    /**
     * BaseController constructor.
     */
    public function __construct()
    {
        if (env('APP_DEBUG', false)) {
            config(['wx.web_host' => 'http://192.168.10.54:8082/r/']);
        }

    }

    protected function _getType($type)
    {

        switch ($type) {
            case 'doc':
                $item = Doc::class;
                break;
        }
        return $item;

    }

}